import { Module, forwardRef } from "@nestjs/common";
import { DeptController } from "./dept.controller";
import { DeptService } from "./dept.service";
import { TypeOrmModule } from "@nestjs/typeorm";
import { Dept } from "./entities/dept.entity";
import { RoleModule } from "../role/role.module";
import { UserModule } from "../user/user.module";

@Module({
  imports: [
    TypeOrmModule.forFeature([Dept]),
    forwardRef(() => UserModule),
    forwardRef(() => RoleModule),
  ],
  controllers: [DeptController],
  providers: [DeptService],
  exports: [DeptService],
})
export class DeptModule {}
